import  requests
import json

class Http_Request:
    def httpre(self,method,url,header,data):
        if method=="post":
            res=requests.post(url,headers=header,data=data)
            # return "Bearer "+res.json()['value']
            return res
        elif method=='get':
            res=requests.get(url,headers=header)
            return res


if __name__ == '__main__':
    pass